#!/usr/bin/env python
#!-*- coding:utf-8 -*-

from google.appengine.ext import db

#
class Kintai(db.Model):
    userid = db.StringProperty(required=True,multiline=False)
    date = db.StringProperty(required=True,multiline=False)
    kaishi = db.StringProperty()
    syuryo = db.StringProperty()
    jitudo = db.StringProperty()
    zan_futu = db.StringProperty()
    zan_sinya = db.StringProperty()
    zan_gokei = db.StringProperty()
    comment = db.StringProperty()

class UserInfo(db.Model):
    userid = db.StringProperty(required=True,multiline=False)
    passwd = db.StringProperty(required=True,multiline=False)
    kaishi = db.StringProperty()
    syuryo = db.StringProperty()
    jitudo = db.StringProperty()
    zan_futu = db.StringProperty()
    zan_sinya = db.StringProperty()
    zan_gokei = db.StringProperty()
    shimebi = db.IntegerProperty()
    #
    register =  db.BooleanProperty()
    register_hash = db.StringProperty()

class UserSession(db.Model):
    sessionid = db.StringProperty()
    userid = db.StringProperty()
    createstime = db.DateTimeProperty(auto_now_add=True)
